package com.app.service.impl;

import com.app.mapper.ItemMapper;
import com.app.pojo.Item;
import com.app.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemServiceImpl implements ItemService {
    @Autowired
    ItemMapper itemMapper;

    @Override
    public List<Item> list(int item_id) {
        return itemMapper.list(item_id);
    }

    @Override
    public void add(Item item) {
        itemMapper.add(item);
    }

    @Override
    public void delete(int item_id) {
        itemMapper.delete(item_id);
    }

    @Override
    public void update(Item item) {
        itemMapper.update(item);
    }

    @Override
    public List<Item> selectAll() {
        return itemMapper.selectAll();
    }
}
